<?php

Raise::load('core.RaiseStaticClass');

/**
 * TestCoreRaiseStaticClass class
 * Testing unit of 'phpraise/core/RaiseStaticClass.php
 *
 * @author Sam-Mauris Yong <hellclanner at live dot com>
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package Raise.UnitTest.Test
 */
class TestCoreRaiseStaticClass extends RaiseTest {
    
    public static function testClass(){
        self::assertClassExists('RaiseStaticClass');
        self::assertClassExists('MockRaiseStaticClass');
        self::assertClassExtends('MockRaiseStaticClass', 'RaiseStaticClass');

        try{
            $m = new MockRaiseStaticClass();
            self::addError('Somehow, MockRaiseStaticClass was created with no error. This should not happen as MockRaiseStaticClass is extended from RaiseStaticClass.');
            
        }catch(Exception $e){
            self::assert($e);
        }
    }

}
